﻿namespace CollisionDetection.Views
{
    using System.Windows;
    using System.Windows.Controls;
    using ViewModels;

    /// <summary>
    /// Interaction logic for MainScreen.xaml
    /// </summary>
    public partial class CollisionDetectorView : UserControl
    {
        public CollisionDetectorView()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ((CollisionDetectorViewModel)DataContext).Analize();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            ((CollisionDetectorViewModel)DataContext).IncrementWeek();
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            ((CollisionDetectorViewModel)DataContext).DecrementWeek();
        }

        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            ((CollisionDetectorViewModel)DataContext).ExcelFileDialog();
        }
    }
}